function req(details){
  return new Promise((res, rej) => {
    details.onload = res;
    details.ontimeout = rej;
    details.onabort = rej;
    details.onerror = rej;

    GM_xmlhttpRequest(
      details
    );
  });
}